<!-- Begin groups/groups.tpl -->

{titlebar colspan=3 title=$lg->groups}
<table border="0" cellspacing="0" cellpadding="0" width="100%" align="center" class="contentpane">
{opentable}

<tr><td colspan="7" align="center">
{alphalist url="?module=groups"}
</td>
</tr>
<tr>
<td colspan="7" align="center">
<form method="post" action="?module=groups&search=true">
Group Search:
<input type="text" size="16" name="criteria" value="{$smarty.post.criteria}" />
<input type="submit" class="button" value={$lg->search} />
<br />
<b>Note:</b>{$lg->SQL_wildcards_accepted}
</form>
</td>
</tr>

<tr class="sectiontableheader">
<td>{$lg->name}</td>
<td width="15%">{$lg->type}</td>
<td align="center" width="10%">{$lg->products}</td>
<td align="center" width="10%">{$lg->types}</td>
<td align="center" width="10%">{$lg->assets}</td>
<td align="center" width="5%">{$lg->edit}</td>
<td align="center" width="5%">{$lg->active}</td>


</tr>
{foreach from=$groups item=group}
<tr class="{rowcolor}">
<td valign="top"><a href="?module=groups&action=view&gid={$group.gid}">{$group.name}</a></td>
<td width="15%" valign="top">{gtype id=$group.type}</td>

<td align="center" width="10%">
{if $group.opt_product eq "t"}
<a href="?module=groups&action=edit&type=products&gid={$group.gid}"><img src="{$smarty.env.imgs.checked_on}" border="0" alt="Active" /></a>
{else}
&nbsp
{/if}
</td>


<td align="center" width="10%">
{if $group.opt_category eq "t"}
<a href="?module=groups&action=edit&type=categories&gid={$group.gid}"><img src="{$smarty.env.imgs.checked_on}" border="0" alt="Active" /></a>
{else}
&nbsp
{/if}
</td>

<td align="center" width="10%">
{if $group.opt_asset eq "t"}
<img src="{$smarty.env.imgs.checked_on}" border="0" alt="Active" />
{else}
&nbsp
{/if}
</td>

<td align="center" width="5%"><a href="?module=groups&action=edit_info&gid={$group.gid}"><img src="{$smarty.env.imgs.edit}" width="16" height="16" border="0" alt="Edit Group" /></a></td>
<td align="center" width="5%">
{if $group.active eq "t"}
<a href="?module=groups&gid={$group.gid}&active=f&start={$smarty.get.start}"><img src="{$smarty.env.imgs.ok}" width="16" height="16" border="0" alt="Active" /></a>
{else}
<a href="?module=groups&gid={$group.gid}&active=t&start={$smarty.get.start}"><img src="{$smarty.env.imgs.no}" width="16" height="16" border="0" alt="Inactive" /></a>
{/if}
</td>

</tr>

{/foreach}

<td colspan="7" align="center" height="30px">&nbsp</>
</table>

<!-- End groups/groups.tpl -->



